package com.ttbj.interceptor;

import org.springframework.beans.factory.annotation.Autowired;
import com.ttbj.product.api.DriverFacade;
import com.ttbj.product.bean.dto.DriverDto;

/**
 * 验证openID拦截器
 * 
 * @author Medivh
 */
public class DriverCheckInterceptor extends  DefultCheckInterceptorApater {
 

	@Autowired
	DriverFacade driverFacade = null;

	@Override
	Object getUser(String token) throws Exception {
		return driverFacade.findDriver(new DriverDto(token),2);
	}

	 
}
